/* css/style.css */
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

/* 动态背景 */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        45deg, 
        #0a0c27 0%, 
        #1a1a4f 60%, 
        #2d0f3a 100%
    );
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, 
            rgba(255,255,255,0.1) 0%, 
            transparent 40%),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 2px,
            rgba(255,255,255,0.05) 2px,
            rgba(255,255,255,0.05) 4px
        );
    animation: starry 120s linear infinite;
}

.nebula {
    position: absolute;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 70% 60%, 
            rgba(178, 102, 232, 0.1) 0%, 
            transparent 40%);
    animation: nebula-flow 300s linear infinite;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 标题样式 */
.hero-section {
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.glowing-title {
    font-size: 3.5rem;
    color: #e0e0ff;
    text-shadow: 0 0 15px rgba(94, 129, 222, 0.8);
    margin-bottom: 1rem;
}

.title-underline {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6d5dfc 50%, 
        transparent 100%);
    margin: 1rem auto;
}

.subtitle {
    font-size: 1.5rem;
    color: #aab2ff;
    letter-spacing: 2px;
}

/* 导航栏 */
.glass-nav {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 1rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: #e0e0ff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, 
        rgba(109, 93, 252, 0.2), 
        rgba(109, 93, 252, 0.05));
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(109, 93, 252, 0.3);
}

.nav-item.active {
    background: linear-gradient(145deg, 
        rgba(109, 93, 252, 0.4), 
        rgba(109, 93, 252, 0.2));
}

/* 卡片设计 */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.welcome-card {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.news-card {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 1rem 0;
}

.card-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #6d5dfc;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transform: rotate(5deg);
}

/* 动画效果 */
@keyframes starry {
    0% { transform: translate(0,0); }
    100% { transform: translate(-50%,-50%); }
}

@keyframes nebula-flow {
    0% { transform: translate(-10%,-10%) rotate(0deg); }
    100% { transform: translate(10%,10%) rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .glass-nav {
        padding: 0.5rem;
    }

    .glowing-title {
        font-size: 2.5rem;
    }

    .news-image {
        height: 200px;
    }
}